package stephen.jan20.co12;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;


public class Basecontrol {
	
	public boolean add(String sql ){
		
		BaseDao bd=new BaseDao();
		Connection con=bd.getCon();
		bd.getCon();
		try {
			PreparedStatement ps=con.prepareStatement(sql);
			ps.executeUpdate();
			if(ps!=null){
				ps.close();
				
			}
			if(con!=null){
				con.close();
				
			}
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return true;
}
}